#!/usr/bin/env python
#coding: utf-8
import gevent
import gevent.monkey
gevent.monkey.patch_all()
import mg_config
from work.deal_datas import *
if __name__ == '__main__':
    try:

        greenlet_list = []
        deal_redis_l = []
        deal_redis_l.append(modifyeventstatus())
        for deal_redis in deal_redis_l:
            greenlet_list.append(gevent.spawn(deal_redis.starting))


        gevent.joinall(greenlet_list)
    except Exception as e:
        mg_config.yz_log.error(str(e))